//
//  CS_Page_TabbarContainerView.h
//  Pods
//
//  Created by apple on 2017/8/30.
//
//

#import <CSUIKit/CSUIKit.h>

typedef void(^OnTabIndexChanged)(NSInteger currentIndex, NSString *currentTitle);

@interface CS_Page_TabbarContainerView : CSBaseView

@property (nonatomic, strong) UIColor *textColor;

@property (nonatomic, strong) UIColor *tablineColor;

@property (nonatomic, strong) UIColor *tabBackgroundColor;

@property (nonatomic, assign) int currentIndex;

@property (nonatomic, strong) NSString *currentTitle;

@property (nonatomic, strong) UIFont *normalTitleFont;

@property (nonatomic, strong) UIFont *selectedTitleFont;

@property (nonatomic, strong) NSArray *tabTitles;

+(id)page_TabbarContainerView:(NSArray *)tabTitles needHeight:(CGFloat)needHeight;

+(id)page_TabbarContainerView:(NSArray *)tabTitles needHeight:(CGFloat)needHeight onTabIndexChangedHandler:(OnTabIndexChanged)onTabIndexChangedHandler;

/**
 * 根据索引号获取索引所对应的父视图
 */
-(UIScrollView *)getSuperPanelByIndex:(NSInteger)index;

/**
 * 根据标题获取标题所对应的父视图
 */
-(UIScrollView *)getSuperPanelByTitle:(NSString *)title;

@end
